<template>
  <div>
    <div>
      <h4>痉挛程度（ot组改良Ashworth分级）</h4>
      <el-row type="flex" justify="space-between">
        <el-col :span="6">
          <div>
            <span>上肢</span>
            <el-select v-model="pgForm.spasm_degree_upper" placeholder="请选择" style="width: 50%">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
            <span> 级</span>
          </div>
        </el-col>
        <el-col :span="16">
          <div>
            <el-input v-model="pgForm.spasm_degree_upper_text" placeholder="" readonly style="width: 50%;"></el-input>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>手 </span>
            <el-select v-model="pgForm.spasm_degree_hand" placeholder="请选择" style="width: 50%">
              <el-option
                v-for="item in options"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
            <span> 级</span>
          </div>
        </el-col>
        <el-col :span="16">
          <div>
            <el-input v-model="pgForm.spasm_degree_hand_text" placeholder="" readonly style="width: 50%;"></el-input>
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "spasm_degree",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data() {
    return {
      options: [{
        value: '0',
        label: '0',
        text: '无肌张力升高'
      }, {
        value: 'Ⅰ',
        label: 'Ⅰ',
        text: '肌张力稍高，活动肢体时有卡住感（后25％）'
      }, {
        value: 'Ⅰ+',
        label: 'Ⅰ+',
        text: '肌张力稍高，活动肢体时有卡住感（后50％）'
      }, {
        value: 'Ⅱ',
        label: 'Ⅱ',
        text: '肌张力明显升高，被动活动肢体容易（50％）'
      }, {
        value: 'Ⅲ',
        label: 'Ⅲ',
        text: '肌张力显著升高，被动活动困难'
      }, {
        value: 'Ⅳ',
        label: 'Ⅳ',
        text: '受累肢体僵硬于屈曲或伸展位（外展或内收位）'
      }],
      pgForm: {
        spasm_degree_upper: '',
        spasm_degree_hand: '',
        spasm_degree_upper_text: '',
        spasm_degree_hand_text: ''
      }

    }
  }
}
</script>

<style scoped>
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
.el-col {
  margin:10px 0;
}
.el-select{
  width: 60%
}

</style>
